@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
<div class="user-title user-bank">
    <div class="title">
        <div class="h left">银行卡管理</div>
    </div>
    <div class="user-box">
        <div class="user-bor user-add">
            <div class="btn-b"><a href="/user_bankcard_add"></a></div>
            <span>添加银行卡</span>
        </div>
        @if(!empty($info))
            @foreach($info as $k=>$v)
                <div class="user-bor user-cade">
                    <div class="bank-title">
                        <img src="{{$v->img}}" alt="">
                    </div>
                    <div class="user-mess">
                        <div class="span left">已绑定</div>
                        <div class="left cade">{{substr_replace($v->bank_num,'********',4,11)}}</div>
                        <div class="span left clear">{{$v->bound_name}}</div>
                        <div class="left">绑定于 ： <span>{{date('Y-m-d',$v->created)}}</span></div>
                    </div>
                    <a href="javascript:;" class="delete"  data-bank_id="{{$v->bank_id}}">删除</a>
                </div>
            @endforeach
        @endif
    </div>
</div>
